package com.yh.patterns.factory.abstract_factory.HaierAndHisenseAndTCL;

/**
 * @Auther:云尚学Java
 */
public class Client {
    public static void main(String[] args) {
        HaierFactory factory=new HaierFactory();
        Television television = factory.createTelevision();
        AirConditioner airConditioner = factory.createAirConditioner();
        Refrigeratory refrigeratory = factory.createRefrigeratory();
        television.show1();
        airConditioner.show2();
        refrigeratory.show3();
        System.out.println("========");

        HisenseFactory factory1=new HisenseFactory();
        Television television1 = factory1.createTelevision();
        AirConditioner airConditioner1 = factory1.createAirConditioner();
        Refrigeratory refrigeratory1 = factory1.createRefrigeratory();
        television1.show1();
        airConditioner1.show2();
        refrigeratory1.show3();
        System.out.println("========");

        TCLFactory factory2=new TCLFactory();
        Television television2 = factory2.createTelevision();
        AirConditioner airConditioner2 = factory2.createAirConditioner();
        Refrigeratory refrigeratory2 = factory2.createRefrigeratory();
        television2.show1();
        airConditioner2.show2();
        refrigeratory2.show3();
    }
}
